package com.blue.comments.mapper;

import com.litblue.starter.pojo.comments.domain.Comment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface CommentsRepository extends MongoRepository<Comment,String> {

    List<Comment> findByArtworkId(String artworkId);

    Integer countByArtworkId(String artworkId);
}
